package com.heima.model.common;

import com.heima.model.common.dtos.PageResponseResult;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.common.enums.AppHttpCodeEnum;

import java.util.Arrays;

public class Test01 {
    public static void main(String[] args) {
      /*  ResponseResult responseResult = new ResponseResult();
        responseResult.setCode(AppHttpCodeEnum.SUCCESS.getCode());
        responseResult.setErrorMessage(AppHttpCodeEnum.SUCCESS.getErrorMessage());
        responseResult.setData("this is data");*/

       /* ResponseResult responseResult = ResponseResult.okResult("this is data");*/

       /* ResponseResult responseResult = new ResponseResult();
        responseResult.setCode(AppHttpCodeEnum.SERVER_ERROR.getCode());
        responseResult.setErrorMessage(AppHttpCodeEnum.SERVER_ERROR.getErrorMessage());*/

        //ResponseResult.errorResult(AppHttpCodeEnum.SERVER_ERROR);

        PageResponseResult pageResponseResult = new PageResponseResult(1,5,100);
        pageResponseResult.setData(Arrays.asList("aa","bb","cc","dd","ee"));

    }
}
